package car.autowire.byname;

import car.construction.injection.Specification;

public class Car {
    private Specification specification;

// public Car(Specification specification) {
//     System.out.println("Car Constructor is called");
//     this.specification = specification;
// }

    public void setSpecification(Specification specification){
        this.specification = specification;
    }
    public void displayDetails() {
        System.out.println("Car Details: " + specification.toString());
    }
}
